08. Exercise: Start an Activity

Start an Activity

Now it’s your turn. Complete the TODOs in T04a.02-Exercise-StartNewActivity.

SOLUTION:
  • Store ChildActivity’s class object in a variable.
  • Create an intent using the context and class variables.
  • Start the activity using startActivity(Intent).